﻿using System;

namespace AuchanScan.Models
{
    public class Product
    {
        public Product()
        {
            TauxTVA = 0.196f;
        }

        public int Id { get; set; }

        public double Cagnotte { get; set; }
        public bool IsTicketRestoCompliant { get; set; }
        public String Name { get; set; }
        public long Barcode { get; set; }
        public bool ShortBarcode { get; set; }
        public double Price { get; set; }
        public float TauxTVA { get; set; }

        public string Image1 { get; set; }
        public string Comment1 { get; set; }
        public string Comment2 { get; set; }
        public string Comment3 { get; set; }

        public double TVA
        {
            get { return Price/(1 + TauxTVA); }
        }
    }
}